cmake_minimum_required(VERSION 3.10)
# 最小需要的CMake版本

set(CMAKE_C_COMPILER "C:/MinGW/bin/gcc.exe")
set(CMAKE_CXX_COMPILER "C:/MinGW/bin/g++.exe")
# 需要的编译器为MinGW

project(travelling-salesman-problem)
# 项目名称：旅行商问题

set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/build/)
# 可执行文件输出目录

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
file(GLOB MAIN_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
# 扫描资源文件与头文件

add_executable(tsp-solution ${MAIN_SRC})
# 输出可执行文件